package com.demo.shiro.model;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author 29109
 */
@Table(name = "t_role_permission")
public class RolePermission implements Serializable {
    private static final long serialVersionUID = -4759420241118662248L;
    /**
     * 角色ID
     */
    private Integer rid;

    /**
     * 权限ID
     */
    private Integer pid;

    /**
     * 获取角色ID
     *
     * @return rid - 角色ID
     */
    public Integer getRid() {
        return rid;
    }

    /**
     * 设置角色ID
     *
     * @param rid 角色ID
     */
    public void setRid(Integer rid) {
        this.rid = rid;
    }

    /**
     * 获取权限ID
     *
     * @return pid - 权限ID
     */
    public Integer getPid() {
        return pid;
    }

    /**
     * 设置权限ID
     *
     * @param pid 权限ID
     */
    public void setPid(Integer pid) {
        this.pid = pid;
    }
}